export default [
  {
    path: "/setting",
    component: () => import("@/views/layout/home"),
    alwaysShow: true,
    redirect: "/setting/user",
    meta: {
      title: "系统管理",
      icon: "el-icon-upload",
      roles: ["superAdmin", "commonAdmin"],
    },
    children: [
      {
        path: "/setting/users",
        name: "Users",
        component: () => import("@/views/setting/users/users.vue"),
        meta: {
          title: "用户管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: '/setting/roles',
        name: 'Roles',
        component: () => import("@/views/setting/roles/roles.vue"),
        meta: {
          title: "角色管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: '/setting/log',
        name: 'Log',
        component: () => import("@/views/setting/log/log.vue"),
        meta: {
          title: "日志管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: '/setting/dataBase',
        name: 'DataBase',
        component: () => import("@/views/setting/dataBase/dataBase.vue"),
        meta: {
          title: "数据备份恢复",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: '/setting/showConfig',
        name: 'ShowConfig',
        component: () => import("@/views/setting/showConfig/showConfig.vue"),
        meta: {
          title: "显示配置",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: '/setting/menus',
        name: 'Menus',
        component: () => import("@/views/setting/menus/menus.vue"),
        meta: {
          title: "菜单管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
    ],
  },
];
